/**
  * 活动相关接口，未来所有活动相关的接口都放在此文件下，不建议创建新的文件，因为可能多个活动会有共同的接口
  * @author: Ruan Jiazhen
  * @date: 2024-04-29 09:19:41
* */

import type { ACTIVITY_RULE_KEY } from '@/static/constant/view-constant';
import { reqGet } from './request';
/**
 * 获取活动规则（富文本）
 * @param ruleKey 规则key
 */
export const reqGetActivityRule = (ruleKey:string) => reqGet<{
  ruleKey: typeof ACTIVITY_RULE_KEY[keyof typeof ACTIVITY_RULE_KEY];
  ruleValue: string;
}>('/activityMay2023/getRule', { ruleKey });


/**
 * 获取昨日积分数据
 */
export const reqGetYesterdayPointData = () => reqGet('/activityOctober2023/getYesterdayTaskList')